// 存放状态
const state = {
  routes: {},
  rules: {
    goodsName: [{ required: true, message: "请输入广告名称", trigger: "blur" }],
    minPrice: [
      { required: true, message: "请输入最低投入", trigger: "blur" }
    ],
    maxPrice: [
      { required: true, message: "请输入高投入", trigger: "blur" }
    ],
    goodsStock: [
      { required: true, message: "请输入广告库存", trigger: "blur" }
    ],
    goodsPic: [{ required: true, message: "请输入广告LOGO", trigger: "blur" }],
    goodsDesc: [
      { required: true, message: "请输入广告详细内容", trigger: "blur" }
    ],
    classifyName: [
      { required: true, message: "请输入分类名称", trigger: "blur" }
    ],
    classifySort: [
      { required: true, message: "请输入分类排序", trigger: "blur" }
    ],
    classifyPic: [
      { required: true, message: "请输入分类图片", trigger: ["change", "blur"] }
    ],
    pageBgColor: [
      { required: true, message: "请输入背景色", trigger: ["change", "blur"] }
    ]
  }
};

// 更改state中状态的逻辑，同步操作
const mutations = {};

// 提交mutation，异步操作
const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
